package com.bdzl.biz.servicefeign;

import com.bdzl.biz.common.config.FeignConfig;
import com.bdzl.pub.config.Constant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="sysEContract", configuration = FeignConfig.class,contextId = "EContractFeignService",url = Constant.sys+":7002")
public interface EContractFeignService {
    /**
     * @Description: TODO 根据订单号查询已签署的人数
     * @param odrNo 订单号
     * @return: int
     * @Author: Ming
     * @Date: 2021/5/26 18:53
     */
    @PostMapping("/bdzl/contractOnlineSignrec/listByCosOdr")
    Integer listByCosOdr(@RequestParam("odrNo") String odrNo);

    /**
    * @Description: TODO 电子签
    * @param odrNo
    * @return: java.lang.Integer
    * @Author: Ming
    * @Date: 2021/5/26 19:29
    */
    @PostMapping("/bdzl/contract/signingAContract")
    Integer signingAContract(@RequestBody String odrNo);
}
